<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title></title>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
 
<%@ include file="securty.jsp" %>

	<!--[if lt IE 9]>
	<script src="${ctx}/js/jquery-1.11.1.min.js"></script>
	<![endif]-->
	<!--[if gte IE 9]><!-->
	<script src="${ctx}/js/jquery-2.0.3.min.js"></script>
	<!--<![endif]-->

<script type='text/javascript'>
$(document).ready(function() { 
	$("#pswd").focus();
	$("#sb").click(function(){
		var pswd=$("#pswd").val();
		$.post("${ctx}/login",{pswd:pswd},function(dt){
			if(dt.retcode==0){ window.location.href="${ctx}";}
			else{ alert(dt.retmsg);};
		});
	});
	if(isLogin) {  window.location.href="${ctx}"; } 
});
</script>
	</head>

	<body> 
		<table width="" cellpadding="0" cellspacing="0" border="0"
			align="center" style="margin-top: 300px">
			<tr>
				<td colspan="3" align="center">
					<h1 style="">
						登陆
					</h1>
				</td>
			</tr> 
			<tr >
				<td>
					&nbsp;请输入口令
				</td>
				<td>
					&nbsp;
					<input id="pswd" name="pswd" value=""></input>
				</td>
				<td>
					&nbsp;
					<input id="sb" type="button" value="登陆" style="padding:4px 24px"></input>
				</td>

			</tr>
		</table>

	</body>
</html>
